/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package mb.mbpart.object;

import static mb.mbpart.object.ProvinceObject.STR_C_PROVINCE_ID;
import net.sf.json.JSONObject;
import org.json.simple.JSONValue;

/**
 *
 * @author thanh.nguyenchi
 */
public class StateObject {
    static String STR_C_STATE_ID = "State_ID";
    static String STR_C_NAME = "Name";      
    
    //public field
    public long C_STATE_ID;
    public String C_NAME;    
    
    public StateObject(){}
    
    public String toJson(){
        JSONObject objRecv = new JSONObject();
        objRecv.put(STR_C_STATE_ID, new Long(this.C_STATE_ID));
        objRecv.put(STR_C_NAME, this.C_NAME);                
        return JSONValue.toJSONString(objRecv);
    }
}
